package utils;

import bean.ViewFactura;

import com.thoughtworks.xstream.XStream;

public class FacturaConverter {
	private static XStream xs = new XStream();
	
	
	
	public static ViewFactura fromXmlToObject(String xml){
		return (ViewFactura)xs.fromXML(xml);
	}
	
	public static String fromObjectToXML(ViewFactura factura){
		return xs.toXML(factura);
	}
	
}

